#include <iostream>
#include <vector>
using namespace std;
int n, m, l;
const int N = 5000;

vector<int> ans(5000);
void slove(vector<int>& x, vector<int>& y) {
    for(int i = 0; i < n; i++) {
        for(int j = 0; j < m; j++) {
            ans[i + j] += x[i] * y[j];
            ans[i + j + 1] += ans[i + j] / 10;
            ans[i + j] %= 10; 
        }
    }
    while(l && ans[l] == 0) l--;
}
int main() {
    string a, b;
    cin >> a >> b;
    n = a.size(), m = b.size();
    l = n + m;
    vector<int> x, y;
    for(int i = n - 1; i >= 0; i--) {
        x.push_back(a[i] - '0');
    }
    for(int i = m - 1; i >= 0; i--) {
        y.push_back(b[i] - '0');
    }
    slove(x, y);
    for(int i = l; i >= 0; i--) {
        cout << ans[i];
    }
    return 0;
}